package com.yuqing.myblogServe.dao.mapper;

import com.yuqing.myblogServe.dao.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuqing.myblogServe.dao.entity.ArticleRank;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuqing
 * @since 2023-12-01
 */
@Repository
public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleRank> getArticleLikesRank();

    int updateLikesById(String articleId);

    void addCommentCount(String articleId);

    Article getArticleByArticleId(String articleId);



}
